package com.xxxx.yeb.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xxxx.yeb.pojo.Employee;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxxx.yeb.pojo.EmployeeQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zhoubin
 * @since 2020-07-17
 */
public interface EmployeeMapper extends BaseMapper<Employee> {

    int updateJobLevelId(Integer[] ids);

    int countJoblevel(Integer[] ids);

    int deleteBatchByPosIds(Integer[] ids);

    IPage<Employee> selectAllEmployeeByQuery(Page<Employee> page, @Param("employeeQuery") EmployeeQuery employeeQuery);

    IPage<Employee> selectAllEmployeeSal(Page<Employee> page, @Param("employeeQuery") EmployeeQuery employeeQuery);

    EmployeeQuery queryMaxWorkID();

    Integer updateEmployeeByEmp(Employee employee);

    Integer insertEmployeeByEmp(Employee employee);

    List<Employee> selectAllEmployee();

    int updateEmployeeSal(EmployeeQuery employeeQuery);



    Integer queryDepartement (Integer id);
}
